# 向量内积
import numpy as np
import matplotlib.pyplot as plt

a = np.array([5, 1])
w = np.array([2, 20])
inner = a @ w
print(f'inner:{inner}')
# --------------------------------------------------------------- #
# 两个矩阵乘
import numpy as np
a = np.array([[5, 1],
             [2, 4]])
b = np.array([[2, 3, 4],
             [2, 4, 7]])
inner = a @ b
print(f'inner:{inner}')